Page({
  onReady: function () {
    //详情：https://developers.weixin.qq.com/miniprogram/dev/framework/view/animation.html
    this.animate(".anim-pic", [
      { opacity: 0, rotate: 0, backgroundColor: '#FF0000' ,scaleY:0.1,translateY:500},
      { opacity: 0.5, rotate: 0, backgroundColor: '#00FF00', offset: 0.6,scaleY:1,translateY:-200},
      { opacity: 1.0, rotate: 0, backgroundColor: '#FF0000' },
      ], 2000, function () {
        this.clearAnimation('#container1', { opacity: true, rotate: true }, function () {
          console.log("清除了#container上的动画属性")
        })
    }.bind(this))
  }
})
